package com.ian.service.impl;

import com.ian.dao.PerStlikeMapper;
import com.ian.pojo.PerStlike;
import com.ian.service.PerStlikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PerStlikeServiceImpl implements PerStlikeService {
    @Autowired
    PerStlikeMapper perStlikeMapper;

    @Override
    public int deleteByPrimaryKey(Integer perStlikeId) {
        return perStlikeMapper.deleteByPrimaryKey(perStlikeId);
    }

    @Override
    public int insert(PerStlike record) {
        return perStlikeMapper.insert(record);
    }

    @Override
    public List<PerStlike> selectByUid(Integer perUserId) {
        return perStlikeMapper.selectByUid(perUserId);
    }

    @Override
    public PerStlike selectByStallId(Integer perStallId) {
        return perStlikeMapper.selectByStallId(perStallId);
    }

    @Override
    public int deleteByStallId(Integer perStallId) {
        return perStlikeMapper.deleteByStallId(perStallId);
    }
}
